package cn.sykj.car.entity;

import cn.sykj.car.utils.DiffEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 会员卡类型配置
 * </p>
 *
 * @author duanzis
 * @since 2021-06-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ConfigCardCategory对象", description="会员卡类型配置")
public class ConfigCardCategory extends Model<ConfigCardCategory> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "会员卡类型：1-月卡  2-临时卡 3-储值卡")
    @DiffEntity(action = "会员卡类型：1-月卡 2-临时卡 3-储值卡")
    private Integer cardType;

    @ApiModelProperty(value = "备注")
    @DiffEntity(action = "备注")
    private String remark;

    @ApiModelProperty(value = "卡片名称")
    @DiffEntity(action = "卡片名称")
    private String cardName;

    @TableLogic
    private Integer delFlag;

    private Date operateTime;

    private String operateUser;


    public static final String ID = "id";

    public static final String CARD_TYPE = "card_type";

    public static final String REMARK = "remark";

    public static final String CARD_NAME = "card_name";

    public static final String DEL_FLAG = "del_flag";

    public static final String OPERATE_TIME = "operate_time";

    public static final String OPERATE_USER = "operate_user";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
